package com.dirox.plugins.jira.servlet;

//package com.dirox.plugins.jira.servlet;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//
//import com.dirox.plugins.ao.Note;
//import com.dirox.plugins.ao.NoteService;
//
//import javax.servlet.*;
//import javax.servlet.http.HttpServlet;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//import java.io.IOException;
//import java.io.PrintWriter;
//
//public class IssuePage extends HttpServlet {
//	private static final Logger log = LoggerFactory.getLogger(IssuePage.class);
//
//	private NoteService noteService;
//
//	public IssuePage(NoteService noteService) {
//		super();
//		this.noteService = noteService;
//	}
//
//	@Override
//	protected void doGet(HttpServletRequest request, HttpServletResponse respond)
//			throws ServletException, IOException {
//		
//		respond.setContentType("text/html");
//		PrintWriter out = respond.getWriter();
//		
//		out.println("<html><body>");
//		/*out.println("<div class='aui-message hint shadowed closeable' >");
//		out.println("<div class='title'>");
//	        	out.println("<strong>Node with long content</strong>");
//	        	//<input clsass="tag_button" type="image" src="http://icons.iconarchive.com/icons/deleket/button/16/Button-Add-icon.png" name="tag_bt">
//	    out.println("</div>");
//	    //out.println("<div class='popup2-button'>");
//	    out.println("<p>This is very long node content. This is very long node content. This is very long node content. This is very long node content. This is very long node content.</p>");
//	  //  out.println("</div>");
//	    out.println("</div>"); */
//
////		Note newnote = noteService.gethighestPriorityNote();
////		out.println("<h><u>Highest priority note: </u></h>");
////		// for (Note newnote : noteService.gethighestPriorityNote()) {
////		out.println("<fieldset style='width:500px' style='color:#06F'>");
////	    out.println("<legend>");
////	    out.println("<strong>Note: " + newnote.getID()+ "</strong>");
////	    out.println("</legend>");
////	    out.println("Content: " + newnote.getContent());
////	    out.println("<br/>");
////	    out.println("Priority: " + newnote.getPriority());
////	    out.println("</fieldset>");
////	//	 }
////	    out.println("<br/>");		
//		
//		
//		 out.println("<textarea cols='20' rows='5' style='background-image:url("+"'http://dwrm.gov.vn/uploads/news/2012_01/lo-go-en.jpg'"+")'>121</textarea>");	
//		// out.println("<img src='http://dwrm.gov.vn/uploads/news/2012_01/lo-go-en.jpg'");	
//		 
//		 
//		 
//		 out.println("<div style='background-image:url(http://farm9.staticflickr.com/8330/8076323477_6a2a77870e.jpg);padding:5px;width:260px;height:175px;border:1px solid black;background-position:-13px -15px'>");
//		 out.println("<p>See the background image?</p>");
//		 out.println("</div>");
//		 
//		 out.println("<h><u>List of notes: </u></h>");	
//	    
//	    for (Note note : noteService.getAll()) {
//	    out.println("<fieldset style='width:400px'>");
//	    out.println("<legend>");
//	    out.println("<strong>Note: " + note.getID()+ "</strong>");
//	    out.println("</legend>");
//	    out.println("Content: " + note.getContent());
//	    out.println("<br/>");
//	    out.println("Priority: " + note.getPriority());
//	    out.println("</fieldset>");
//	    out.println("<br/>");
//	    }
//	    
//	   //out.println("<textarea cols='10' rows='5' style='background-image:url("+ "'../img/note_could.png'"+")>alo</textarea>");
//	    out.println("<br/>");
//		out.println("<table border='1'>");
//		out.println("<tr>");
//		out.println("<th>Note ID</th>");
//		out.println("<th>Content</th>");
//		out.println("<th>Priority</th>");
//		out.println("</tr>");
//
//		for (Note note : noteService.getAll()) {
//			out.println("<tr>");
//			out.println("<td>" + note.getID() + "</td>");
//			out.println("<td>" + note.getContent() + "</td>");
//			out.println("<td>" + note.getPriority() + "</td>");
//			out.println("</tr>");
//
//		}
//		out.println("</table>");
//		out.println("</body></html>");
//
//	}
//
//}